package dataTypesPackage;

import dataConnectionPackage.Facade;

public class Liman {
	private int limanID;
	private boolean isVisible;
	private String name;
	private String city;
	private Ulke country;
	private int limanCalisaniID;
	
	public Liman(){
	    limanID=0;
	    isVisible=true;
	    name="";
	    city="";
	    country=new Ulke();
	    setLimanCalisaniID(1);
	}
	
	public Liman(int limanCalisaniID, String name, String city, Ulke ulke){
		limanID=0;
		isVisible=true;
		this.setLimanCalisaniID(limanCalisaniID);
		this.name = name;
		this.city = city;
		this.country = ulke;
		limanCalisaniID = 1;
		
	}
	
	public Liman(int limanID, String name, String city, int ulkeID,
			int limanCalisaniID) {
		// this function is used to create instance via database results.
		this.limanID=limanID;
		this.name = name;
		this.city = city;
		this.country = (Ulke) Facade.getInstance().get(ulkeID, Ulke.class);
		this.setLimanCalisaniID(limanCalisaniID);
		isVisible=true;
	}

	public void setLimanID(int limanID) {
		this.limanID = limanID;
	}
	public int getLimanID() {
		return limanID;
	}
	public void setName(String limanName) {
		this.name = limanName;
	}
	public String getName() {
		return name;
	}
	public void setVisible(boolean isVisible) {
		this.isVisible = isVisible;
	}
	public boolean isVisible() {
		return isVisible;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCity() {
		return city;
	}
	public void setCountry(Ulke country) {
		this.country = country;
	}
	public Ulke getCountry() {
		return country;
	}

	public void setLimanCalisaniID(int limanCalisaniID) {
		this.limanCalisaniID = limanCalisaniID;
	}

	public int getLimanCalisaniID() {
		return limanCalisaniID;
	}
	

}
